#include "comm.h"
int main()
{
  key_t key=ftok(PATH_NAME,PROJ_ID);
  int shmid=shmget(key,SIZE,IPC_CREAT);
  char* mem=(char*)shmat(shmid,NULL,0);
  
  //通信
  int i=0;
  while(i<10)
  {
    mem[i]='a'+i;
    mem[i+1]='\0';
    i++;
    sleep(1);
  }

  shmdt(mem);
  return 0;


}
